% TEST_ID: LANG-EXPAND-0104
% CATEGORY: language/string
% 测试 string 的删除

function test_string_erase()

str = ["the quick brown fox jumps"; "over the lazy dog"];
newStr = erase(str,"the ")
result = ["quick brown fox jumps";"over lazy dog"];
assert(result == newStr);

match = ["the ","quick ","lazy "];
newStr = erase(str, match)
result = ["brown fox jumps"; "over dog"];
assert(result == newStr);